﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Entity.Table
{
    public class MPayment
    { 
        //唯一编号
        private int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        //银行编码
        private string _bankCode;

        public string BankCode
        {
            get { return _bankCode; }
            set { _bankCode = value; }
        }
        //业务日期
        private string _businessDate;

        public string BusinessDate
        {
            get { return _businessDate; }
            set { _businessDate = value; }
        }

        //银行流水号
        private string _bankWaterNumber;

        public string BankWaterNumber
        {
            get { return _bankWaterNumber; }
            set { _bankWaterNumber = value; }
        }

        //操作员编号
        private string _operatorID;

        public string OperatorID
        {
            get { return _operatorID; }
            set { _operatorID = value; }
        }

        //客户编号
        private string _gasUserID;

        public string GasUserID
        {
            get { return _gasUserID; }
            set { _gasUserID = value; }
        }

       //实缴金额
        private double _payMoney;

        public double PayMoney
        {
            get { return _payMoney; }
            set { _payMoney = value; }
        }

        //缴费方式
        private string _payWay;

        public string PayWay
        {
            get { return _payWay; }
            set { _payWay = value; }
        }

        //对帐标志。0:平帐；1：多帐；2：少帐；3：金额不对
        private string _checkUpStatus;

        public string CheckUpStatus
        {
            get { return _checkUpStatus; }
            set { _checkUpStatus = value; }
        }

        //是否撤销
        private string _backOut;

        public string BackOut
        {
            get { return _backOut; }
            set { _backOut = value; }
        }

        //处理状态
        private string _processStatue;

        public string ProcessStatue
        {
            get { return _processStatue; }
            set { _processStatue = value; }
        }

        //处理人
        private string _processPerson;

        public string ProcessPerson
        {
            get { return _processPerson; }
            set { _processPerson = value; }
        }

        //处理情况说明
        private string _memo;

        public string Memo
        {
            get { return _memo; }
            set { _memo = value; }
        }

        //帐户余额--附加字段
        private decimal _currentJY;
        public decimal CurrentJY
        {
            get { return _currentJY; }
            set { _currentJY = value; }
        }

        //合计金额-附加字段
        private double _hjje;
        public double Hjje
        {
            get { return _hjje; }
            set { _hjje = value; }
        }

        //收费员-附加字段
        private string _sfy;
        public string Sfy
        {
            get { return _sfy; }
            set { _sfy = value; }
        }

        //发票编号-附加字段
        private string _fpid;
        public string Fpid
        {
            get { return _fpid; }
            set { _fpid = value; }
        }

        //缴费方式描述
        private string _paymentType;
        public string PaymentType
        {
            get { return _paymentType; }
            set { _paymentType = value; }
        }

        //欠费金额
        private double _debtMoney;
        public double DebtMoney
        {
            get { return _debtMoney; }
            set { _debtMoney = value; }
        }

        //欠费日期
        private DateTime? _debtDate;
        public DateTime? DebtDate
        {
            get { return _debtDate; }
            set { _debtDate = value; }
        }

        //滞纳金
        private double _znj;
        public double Znj
        {
            get { return _znj; }
            set { _znj = value; }
        }

        private string _payWayName;  //缴费类型名称
        public string PayWayName
        {
            get { return _payWayName; }
            set { _payWayName = value; }
        }

        private decimal _price1;
        public decimal Price1 {
            get { return _price1; }
            set { _price1 = value; }
        }
        private int _buyGasCount1;
        public int BuyGasCount1 {
            get { return _buyGasCount1; }
            set { _buyGasCount1 = value; }
        }
        private decimal _gasFee1;
        public decimal GasFee1 {
            get { return _gasFee1; }
            set { _gasFee1 = value; } 
        }
        private decimal _price2;
        public decimal Price2 {
            get { return _price2; }
            set { _price2 = value; }
        }
        private int _buyGasCount2;
        public int BuyGasCount2 {
            get { return _buyGasCount2; }
            set { _buyGasCount2 = value; }
        }
        private decimal _gasFee2;
        public decimal GasFee2 {
            get { return _gasFee2; }
            set { _gasFee2 = value; }
        }
        private decimal _price3;
        public decimal Price3 {
            get { return _price3; }
            set { _price3 = value; }
        }
        private int _buyGasCount3;
        public int BuyGasCount3 {
            get { return _buyGasCount3; }
            set { _buyGasCount3 = value; }
        }
        private decimal _gasFee3;
        public decimal  GasFee3 {
            get { return _gasFee3; }
            set { _gasFee3 = value; }
        }
        private int _totalGasAll;
        public int TotalGasAll {
            get { return _totalGasAll; }
            set { _totalGasAll = value; }
        }
        private int _benCiGasCount;
        public int BenCiGasCount {
            get { return _benCiGasCount; }
            set { _benCiGasCount = value; }
        }

        //构造
        public MPayment(string userID,string bankCode, string businessDate,string operatorID, 
                       string bankWaterNumber,double payMoney, string payWay, decimal currentJY,
                      string payWayName,decimal price1,int buygasCount1,decimal gasFee1,decimal price2,
                      int buygasCount2,decimal gasFee2,decimal price3,int buygasCount3,decimal gasFee3,
                      int totalGasAll,int benCiGasCount)
        {
            _gasUserID = userID;
            _bankCode = bankCode;
            _businessDate = businessDate;
            _bankWaterNumber = bankWaterNumber;
            _operatorID = operatorID;           
            _payMoney = payMoney;
            _payWay = payWay;
            _currentJY = currentJY;
            _payWayName = payWayName;
            _price1 = price1;
            _price2 = price2;
            _price3 = price3;
            _buyGasCount1 = buygasCount1;
            _buyGasCount2 = buygasCount2;
            _buyGasCount3 = buygasCount3;
            _gasFee1 = gasFee1;
            _gasFee2 = gasFee2;
            _gasFee3 = gasFee3;
            _totalGasAll = totalGasAll;
            _benCiGasCount = benCiGasCount;
        }
    }
}
